package com.guojizhuang.writable;

import org.apache.hadoop.io.Writable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

public class PredictionResultWritable{
    private String locationId;
    private String[] shopIds;

    public PredictionResultWritable(String locationId, String[] shopIds) {
        this.locationId = locationId;
        this.shopIds = shopIds;
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public String[] getShopIds() {
        return shopIds;
    }

    public void setShopIds(String[] shopIds) {
        this.shopIds = shopIds;
    }

    @Override
    public String toString() {
        return "PredictionResultWritable{" +
                "locationId='" + locationId + '\'' +
                ", shopIds=" + Arrays.toString(shopIds) +
                '}';
    }
}
